package rolling

import (
	"errors"
	"fmt"
)

var (
	ErrInvalidPeriod = errors.New("rolling: invalid period")
)

type RollingWindow interface {
	Add(num int64)
	Sum() int64
	Max() int64
	Avg() float64
	Stop()
	fmt.Stringer
}
